package com.zenithmind.article.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

import com.zenithmind.article.pojo.domain.Tag;
import com.zenithmind.article.pojo.domain.Category;

@Data
@Schema(name = "文章视图对象", description = "文章视图对象")
public class ArticleVO {
    @Schema(description = "主键")
    private String id;

    @Schema(description = "文章标题")
    private String title;

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "文章摘要")
    private String summary;

    @Schema(description = "封面图片URL")
    private String coverImage;

    @Schema(description = "分类")
    private Category category;

    @Schema(description = "作者")
    private UserVO userVo;

    @Schema(description = "浏览量")
    private Integer viewCount;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "评论数")
    private Integer commentCount;

    @Schema(description = "状态：0-草稿，1-已发布，2-已删除")
    private Integer status;

    @Schema(description = "是否置顶：0-否，1-是")
    private Integer isTop;

    @Schema(description = "是否推荐：0-否，1-是")
    private Integer isRecommend;

    @Schema(description = "标签名称列表")
    private List<Tag> tag;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}
